﻿<html>
<head>
<style>
html{font-size:12px;} 
fieldset{width:500px; margin: 0 auto;} 
legend{font-weight:bold; font-size:14px;} 
label{float:left; width:70px; margin-left:10px;} 
    .left{margin-left:80px;} 
    .input{width:150px;} 
span{color: #666666;} 
</style>
</head>
<script> 
function InputCheck(LoginForm) 
{ 
if (LoginForm.username.value == "")   { 
alert("请输入用户名!"); 
LoginForm.username.focus(); 
return (false); 
  } 
if (LoginForm.password.value == "") 
  { 
alert("请输入旧密码!"); 
LoginForm.password.focus(); 
return (false); 
  } 
  
if (LoginForm.new_password1.value == "") 
  { 
	alert("请输入新密码!"); 
	LoginForm.new_password1.focus(); 
	return (false); 
  } 
  if (LoginForm.new_password.value == "") 
  { 
	alert("请重复输入新密码!"); 
	LoginForm.new_password.focus(); 
	return (false); 
  } 
} 
</script> 
	<body>
			<fieldset> 
			<legend>修改密码</legend> 
				<form name="LoginForm" method="post" action="<?php echo site_url("Backstage/update_admin");?>" onsubmit="return InputCheck(this)"> 
				<p> 
					
					<label for="username" class="label">用户名:</label> 
					<input id="username" name="username" type="text"  readonly= "true" class="input" value="<?php echo $username;?>" /> 
					
				<p/> 
				<p> 
					<label for="password" class="label">旧密码:</label> 
					<input id="password" name="password" type="password" class="input" /> 
				<p/> 
				<p> 
					<label for="new_password1" class="label">新密码:</label> 
					<input id="new_password1" name="new_password1" type="password" class="input" /> 
				<p/> 
				<p> 
					<label for="new_password" class="label">重复密码:</label> 
					<input id="new_password" name="new_password" type="password" class="input" /> 
				<p/> 
				<p>
					<input type="submit" name="submit" value="  确定  " class="left" />
				</p> 
				</form> 
			</fieldset> 
	</body>
	<?php if(!empty($error)){?>
	<script type="text/javascript">
             alert("错误："+"<?php echo $error;?>");   
     </script>  
    <?php }?>
	<?php if(!empty($succese)){?>
	<script type="text/javascript">
             alert("<?php echo $succese;?>");   
     </script>  
    <?php }?>
</html>